package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	public class mallsim extends Sprite
	{
		private var m_game:Game;
		public function mallsim()
		{
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			addChild(Util.getRectSprite(500,500,0xdddddd));
			
			new Terminal(stage, onTerminalInput);
			m_game = new Game();
			m_game.start();
		}
		
		private function onTerminalInput(input:String):void{
			m_game.command(input);
		}
	}
}